<?php get_header(); ?>

<div class="main">
  <div class="page_article">
    <div class="am-container">
      <div class="am-g">
        <div class="col-md-8 col-sm-12 article_list">

		<?php if ( have_posts() ) : ?>
			<ul>
			<?php while ( have_posts() ) : the_post(); ?>
				<li>
				  <h3><?php the_title(); ?></h3>
				  <div class="post-info">
					<span><i class="am-icon-clock-o"></i><?php the_date('Y-m-d'); ?></span>
					<span><i class="am-icon-bookmark-o"></i><?php the_new_tag(); ?></span>
					<span><i class="am-icon-eye"></i><?php get_post_views($post -> ID); ?>次</span>
				  </div>
				  <div class="am-g">
					<div class="col-md-6"><?php the_post_thumbnail('post-thumbnail-370-250'); ?></div>
					<div class="col-md-6">
					  <p><?php the_excerpt(); ?></p>
					  <p><a href="<?php the_permalink(); ?>" class="am-btn am-btn-warning  am-fr">查看更多<i class="am-icon-angle-double-right"></i></a></p>
					</div>
				  </div>
				</li>
			<?php endwhile; ?>
			</ul>
		<?php endif; ?>

          <ul class="am-pagination am-pagination-left">
            <li class="am-disabled"><a href="#">&laquo;</a></li>
            <li class="am-active"><a href="#">1</a></li>
            <li><a href="#">2</a></li>
            <li><a href="#">3</a></li>
            <li><a href="#">4</a></li>
            <li><a href="#">5</a></li>
            <li><a href="#">&raquo;</a></li>
          </ul>
        </div>
		
		<?php get_sidebar('new'); ?>
      </div>
    </div>
  </div>   
</div>

</div>

<?php get_footer(); ?>